#include "stdafx.h"
#include "IPCMgr.h"


CIPCMgrDLL::CIPCMgrDLL()
{
    mBuf = new char[sizeof(CIPCSend)+sizeof(CIPCReceive)+1];
    ZeroMemory(mBuf, sizeof(CIPCSend)+sizeof(CIPCReceive)+1);
    mSend = (CIPCSend*)mBuf;
    mReceive = (CIPCReceive*)(mBuf+sizeof(CIPCSend));
}

CIPCMgrDLL::~CIPCMgrDLL()
{
    delete [] mBuf;
    mSend=0, mReceive=0;
}

CIPCMgrExe::CIPCMgrExe()
{
    mBuf = new char[sizeof(CIPCSend)+sizeof(CIPCReceive)+1];
    ZeroMemory(mBuf, sizeof(CIPCSend)+sizeof(CIPCReceive)+1);
    mSend = (CIPCSend*)mBuf;
    mReceive = (CIPCReceive*)(mBuf+sizeof(CIPCSend));
}

CIPCMgrExe::~CIPCMgrExe()
{
    delete [] mBuf;
    mSend=0, mReceive=0;
}